<nav class="navbar navbar-default" style="margin-bottom: 10px;">
    <div class="container-fluid">
        <div class="navbar-header">
            <a href="${contextPath}" class="navbar-brand"> 运维系统</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="${contextPath}storage"><span class="glyphicon glyphicon-hdd"></span> 存储管理</a></li>
                <li class="dropdown">
                    <a href class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-th-large"></span> 应用管理 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="${contextPath}application/deploy"><span class="glyphicon glyphicon-th"></span> 部署应用</a></li>
                        <li><a href="${contextPath}application/api"><span class="glyphicon glyphicon-th-list"></span> API文档</a></li>
                    </ul>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <#if user??>
                    <li class="dropdown">
                        <a href class="dropdown-toggle" data-toggle="dropdown" id="user" data-sid="${user.sid}">
                            <span class="glyphicon glyphicon-user"></span> ${user.name} <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="${contextPath}logout"><span class="glyphicon glyphicon-log-out"></span> 退出</a></li>
                        </ul>
                    </li>
                <#else>
                    <li><a href="${contextPath}login"><span class="glyphicon glyphicon-log-in"></span> 登录</a></li>
                </#if>
            </ul>
        </div>
    </div>
</nav>